package simpleserver;

import java.lang.reflect.InvocationTargetException;

public class NewCustomClassLoaderTest {

	/**
	 * @param args
	 * @throws ClassNotFoundException 
	 * @throws IllegalAccessException 
	 * @throws InstantiationException 
	 * @throws NoSuchMethodException 
	 * @throws SecurityException 
	 * @throws InvocationTargetException 
	 * @throws IllegalArgumentException 
	 */
	public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArgumentException, InvocationTargetException {
//		NewCustomClassLoader test = new NewCustomClassLoader();
		ClassLoader c1 = new NewCustomClassLoader();

		System.out.println(System.getProperty("java.class.path"));
		
		
//		System.out.println(System.getProperty("java.library.path"));
		
//		Object o = c1.loadClass("MobAgent").newInstance();
//		
//		System.out.println(o.getClass());
//		System.out.println(o.getClass().getMethod("sagwas").invoke(o));
		
	}

}
